const vm = require("vm2")
const fs = require('fs')

var {VM,VMScript} = vm

var myvm = new VM()

//1.补环境
Bu_code = fs.readFileSync('./补环境.js')
//2.源码
Yuan_code = fs.readFileSync('./源码.js')
//
code = Bu_code+";\n"+Yuan_code+"var o = {url:'https://www.toutiao.com/'};window.byted_acrawler.sign(o)"
// 使用虚拟机运行js源码
res2 = myvm.run(code)
console.log(res2)
